package com.skstudio.reportview;

import com.skstudio.report.ReportBase;
import com.skstudio.report.SpyData;

public class ReportViewController {

    SpyData mSpyDataRef = null;

    public void setSpyData(SpyData ref) {
        mSpyDataRef = ref;
    }
    Object mContext = null;

    public void setContext(Object ctx) {
        mContext = ctx;
    }

    public String getReportDescription() {
        return null;
    }

    //The following functions should be called under a synchronization protected block
    public SpyData getSpyData() {
        return mSpyDataRef;
    }

    public int getReportRows() {
        return 0;
    }

    public int getReportColumns() {
        return 0;
    }

    public int getReportMaxColumn() {
        return ReportBase.getMaxQueueSize();
    }

    public int getEntry(int row, int col) {
        return 0;
    }

    public String getEntryName(int row) {
        return null;
    }

    public String getEntryHint(int col) {
        return null;
    }

    public int getYLabels() {
        return 10;
    }

    public String stringYLabels(int id) {
        return Integer.toString(id * 10) + "%";
    }
    
    long mUserData = 0;

    public void setUserData(long data) {
        mUserData = data;
    }

    public long getUserData() {
        return mUserData;
    }
}
